home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 1.1 KB | 53 lines | [TEXT/MPS ] |
- // UInsertPartCommand.h
- // Copyright © 1996 by Apple Computer, Inc. All rights reserved.
-
- /*
- Change History:
- 02/21/96 gjc Added build flag.
- 01/29/96 gjc Removed Application (drawshape) specfic code and includes.
- Generalized for all MacApp applications, knows about
- TODPartViews.
- 12/14/95 TWB Rename to UInsertPartCommand.
- 12/01/95 mdr Created.
- */
- #if qContainer
-
- #ifndef __UINSERTPARTCOMMAND__
- #define __UINSERTPARTCOMMAND__
-
- #ifndef __UODPARTVIEW__
- #include "UODPartView.h"
- #endif
-
- #ifndef __FILES__
- #include <Files.h>
- #endif
-
- class TInsertPartCommand : public TCommand
- {
- MA_DECLARE_CLASS;
-
- public:
- TInsertPartCommand();
- virtual ~TInsertPartCommand();
- virtual Boolean IInsertPartCommand(CommandNumber itsCommandNumber,
- TDocument* itsDocument,
- TODPartView* itsPartView);
- virtual Boolean ChoosePartFile();
- virtual void Commit();
- virtual void DoIt();
- virtual void UndoIt();
- virtual void RedoIt();
-
- protected:
- FSSpec fFileSpec;
- TODPartView* fODPartView;
- TDocument* fDocument;
-
- private:
- static pascal Boolean PartFileFilter(CInfoPBPtr pb);
- };
-
- #endif // __UINSERTPARTCOMMAND__
- #endif //qContainer
-